package com.byxy.service.impl;

import com.byxy.mapper.LabelMapper;
import com.byxy.po.Label;
import com.byxy.service.LabelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LabelServiceImpl implements LabelService<Label> {


    @Resource
    private LabelMapper labelMapper;

    @Override
    public int deleteByPrimaryKey(Label key) {
        return labelMapper.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(Label record) {
        return labelMapper.insert(record);
    }

    @Override
    public int insertSelective(Label record) {
        return labelMapper.insertSelective(record);
    }

    @Override
    public Label selectOne(Label record) {
        return labelMapper.selectOne(record);
    }

    @Override
    public int updateByPrimaryKey(Label record) {
        return labelMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Label> selectAll() {
        return labelMapper.selectAll();
    }
}
